﻿@model IEnumerable<GameSchool.Models.Game>
@{
    ViewBag.Title = "Games";
}

<h2>Leikir</h2>

<table>
    <thead>
        <tr>
            <td>ID</td>
            <td>Nafn leiks</td>
            <td>Lýsing</td>
            <td>Kennari</td>
            <td>H&aacute;marksfjoldi</td>
            <td>Aðgerð</td>
        </tr>
    </thead>
@foreach (var n in Model)
{
    <tr>
        <td>@n.Name</td>
        <td>@n.Description</td>
        <td>@n.TeacherID</td>
        <td>@n.MaxUser</td>
        <td><a href="/Home/EditGame/@n.ID">Breyta</a></td>

    </tr>
}
</table>
